import request from '@/utils/request'

/**
 *  查询和分页搜索
 */
export default {
  getList(currentPage,pageSize,orderPageVo){
    return request({
      url:`/order/search/${currentPage}/${pageSize}`,
      method: 'post',
      data:orderPageVo

    })

  },
  /**
   *  删除订单 和删除订单详细信息
   * @param orderId
   */
  deleteById(orderId){
    return request({
      url:`/order/remove/${orderId}`,
      method: 'delete',


    })

  },
  /**
   *   修改订单状态（已付款）
   * @param orderId
   * @constructor
   */
  setOrderStatus(num,orderId){
    return request({
      url:`/order/SetAsPaid/${num}/${orderId}`,
      method: 'get',


    })

  },
}
